﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Administrators/Admins.master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<QualificationLevel>>" %>
<%@ Import Namespace="ViewRes" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
   <%:AdministratorsStrings.QualificationLevels%>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ScriptsContent" runat="server">    
<script type="text/javascript">
    function editLevel(link) {
        openDialog(link, '<%:SharedStrings.Edit%>', function() {
            $("#divDialog form").attr("onSuccess", "loadLevels();");
        });
    }

    function loadLevels() {
        location.reload();
    }
</script>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<span class="titletext"><%:SharedStrings.Levels%></span>
<div style="margin: 1em auto; position: relative; text-align: left; width: 300px;" >
        <ol style="list-style: none outside none;">
            <%
                foreach (QualificationLevel level in Model)
                {%>
                <%
                    Html.RenderPartial("~/Views/Administrators/Levels/LevelControl.ascx", level);%>
            <%
                }%>
        </ol>
    </div>
</asp:Content>

